home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 45 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  778 b 

  1. Path: news.compuserve.com!newsmaster
  2. From: 100243.2060@compuserve.com (PXH)
  3. Newsgroups: comp.lang.c
  4. Subject: Reading Directory entries
  5. Date: Mon, 01 Jan 1996 07:40:32 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4c7vm4$6s3@dub-news-svc-3.compuserve.com>
  8. NNTP-Posting-Host: ad34-150.compuserve.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Hi,
  12. I am just starting out in the world of C programming so can someone
  13. help me with this probably basic question -
  14.  
  15. How do I read a directory, and determine whether the entries are files
  16. or directories... I have used readdir, but this doesn't seem to
  17. differentiate between the two.  In short I'm trying to write a program
  18. that "walks" a directory structure (under dos).
  19.  
  20. Thanks in advance...
  21.  
  22. Cheers.
  23. Piers Harding - New Zealand.
  24.  
  25.